package com.xydtech.ecard.ftp.enums;

/**
 * @Author: liliya
 * @Description: sys_dict_data  利率类型
 * 固定	1	interest_rate_type
 * 浮动	2	interest_rate_type
 * @Date: Created in 2023/8/15 19:25
 * @Modified:
 */

public enum FtpInterestRateTypeEnum {

    FIXED_RATE(1,"固定"),
    FLOAT_RATE(2,"浮动");

    private int value;
    private String label;

    FtpInterestRateTypeEnum(int value, String label) {
        this.value = value;
        this.label = label;
    }

    public int getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }

    public static FtpInterestRateTypeEnum values(int code){
        for(FtpInterestRateTypeEnum enums : FtpInterestRateTypeEnum.values()){
            if(enums.getValue() == code){
                return enums;
            }
        }
        return null;
    }

}
